package com.guigu.xm.lq.mapper;

import com.guigu.xm.pojo.SysUsers;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

public interface SysUsersMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SysUsers record);

    int insertSelective(SysUsers record);

    SysUsers selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SysUsers record);

    int updateByPrimaryKey(SysUsers record);

    SysUsers login(@Param("loginId") String loginId,@Param("password") String password);
    @Select("select * from sys_users where login_id=#{login_id}")
    SysUsers chaxu(String login_id);
    @Update("update sys_users set status=0 where id=#{id}")
    int DelUser(String id);
}